package com.ftg.learn.comm.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ftg.learn.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 资源表（权限表|菜单表）
 * </p>
 *
 * @author kangjx
 * @since 2022-09-30
 */
@Data
@TableName("sys_resources")
@ApiModel(value = "资源表（权限表|菜单表）",description = "资源表（权限表|菜单表）映射对象")
public class Resources extends BaseEntity {

    /**
     * 上级编号,-1为顶层
     */
    @TableField("p_id")
    @ApiModelProperty(value = "上级编号",example = "-1",required = true)
    private Integer pid;

    /**
     * 资源名称
     */
    @TableField("res_title")
    @ApiModelProperty(value = "资源名称",example = "员工管理",required = true)
    private String resTitle;

    /**
     * 资源图标_对应的css样式
     */
    @TableField("res_icon")
    @ApiModelProperty(value = "资源图标_对应的css样式",example = "sys_icon_add")
    private String resIcon;

    /**
     * 资源地址，对应处理页面,或者地址
     */
    @TableField("res_href")
    @ApiModelProperty(value = "资源地址，对应处理页面,或者地址",example = "import(()=>{new component(User.vue)})")
    private String resHref;
}
